#ifndef _at24c02_h
#define _at24c02_h

#define at24c02_iic IIC_4
#define at24c02_SDA IIC4_SDA_B13
#define at24c02_SCL IIC4_SCL_B12
#define at24c02_frequency 400*1000
#define at24c02_ddr 0x50

void at24c02_init();
uint8 at24c02_write_uint16(uint8 ddr,uint16 date);
uint8 at24c02_read_uint16(uint8 ddr,uint16 *date);
uint8 at24c02_write_bytes(uint8 ddr,uint16 *date,uint8 len);
uint8 at24c02_read_bytes(uint8 ddr,uint16 *date,uint8 len);

#endif